﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucListColumns.ascx.cs"
    Inherits="myomscl_web.Admin.UserControls.ucListColumns" %>
<asp:UpdateProgress ID="UpdateProgress2" runat="server" DisplayAfter="3">
    <ProgressTemplate>
        <div class="progress">
            Updating&hellip;</div>
    </ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel runat="server" ID="updListColumns" UpdateMode="Conditional">
    <ContentTemplate>
        <div id="DivListColumns" runat="server" class="ListColumns">
            <asp:Repeater ID="rptListColumns" runat="server" OnItemCommand="rptListColumns_ItemCommand"
                OnItemDataBound="rptListColumns_ItemDataBound">
                <HeaderTemplate>
                    <table>
                        <tr>
                            <th>
                                Name
                            </th>
                            <th>
                                Header
                            </th>                            
                            <th>
                            </th>
                            <th>
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <%# Eval("Name") %>
                        </td>
                        <td>
                            <%# Eval("Header") %>
                        </td>                        
                        <td class="btn">
                            <asp:Button ID="btnEdit" runat="server" class="edit" CommandName="Edit" Text="" />
                        </td>
                        <td class="btn">
                            <asp:Button ID="btnDelete" runat="server" class="delete" CommandName="Delete" Text="" />
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table></FooterTemplate>
            </asp:Repeater>            
            <asp:Button ID="btnNewColumns" runat="server" Text="New Column" OnClick="btnNewColumn_Click"
                CssClass="styledButton styledButton200" />
        </div>
        <div id="DivColumnEdit" runat="server" class="materialEdit" visible="false">            
            <div id="DivColumnEditBoxes" runat="server" class="materialEditBoxes">
                <div class="boxRow">
                    <span class="rowBoxLabel">Name</span>
                    <asp:TextBox runat="server" ID="txtColumnName" />
                    <div class="clear">
                    </div>
                </div>
                <div class="boxRow">
                    <span class="rowBoxLabel">Header</span>
                    <asp:TextBox runat="server" ID="txtColumnHeader" />
                    <div class="clear">
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
            <asp:Button ID="btnCancelNewColumn" runat="server" Text="Cancel" OnClick="btnCancelNewColumn_Click"
                CssClass="styledButton styledButton150" />
            <asp:Button ID="btnSaveNewColumn" runat="server" Text="Save" OnClick="btnSaveNewColumn_Click"
                CssClass="styledButton styledButton150" />
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
